package com.ruoyi.mobile.api;


import com.ruoyi.common.core.domain.AjaxResults;
import com.ruoyi.common.utils.JsSignUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

/**
 *调起微信扫一扫
 */
@Api(tags = "调起微信扫一扫")
@RestController
@RequestMapping
@Slf4j
public class WechatScanController {

    @ResponseBody
    @ApiOperation(value = "微信扫扫一扫")
    @RequestMapping("/app/weChatScan")
    public AjaxResults geyScan(HttpServletRequest request) throws IOException {
            String url = "https://wechat.horgoscloud.cn/admin/h5/";
            Map<String, String> sign = JsSignUtil.sign(url);
        return AjaxResults.success(sign);
    }
}
